package com.priox.sigar.domain.model;

import com.mm.support.domain.IdentifiedAuditableDomainObject;

import javax.persistence.*;

/**
 * Created with IntelliJ IDEA.
 * User: Johann
 * Date: 28/08/13
 * Time: 02:21 PM
 * To change this template use File | Settings | File Templates.
 */
@Entity
@Table(name = "SGTR_ACREEDOR_SOCIEDAD")
@IdClass(AcreedorSociedadPK.class)
public class AcreedorSociedad extends IdentifiedAuditableDomainObject {
    @Id
    @Column(name = "ACREEDOR_ID")
    private String acreedorId;
    @Id
    @Column(name = "SOCIEDAD_ID")
    private String sociedadId;

    @Column(name = "RELACIONADO",length = 1)
    private Integer relacionado;


    public String getAcreedorId() {
        return acreedorId;
    }

    public void setAcreedorId(String acreedorId) {
        this.acreedorId = acreedorId;
    }

    public String getSociedadId() {
        return sociedadId;
    }

    public void setSociedadId(String sociedadId) {
        this.sociedadId = sociedadId;
    }

    public Integer getRelacionado() {
        return relacionado;
    }

    public void setRelacionado(Integer relacionado) {
        this.relacionado = relacionado;
    }


}
